from protocol import recorder_pb2
from protocol import recorder_pb2_grpc

class Analysis(recorder_pb2_grpc.recorderServicer):

    def init(self, algorithm):
        self._algorithm = algorithm
        pass

    def Analysis(self, request, context):
        
        print("Analysis: -------------", request.code)
        self._algorithm._analysis(request.code)
        return recorder_pb2.AnalysisResponse()
        